function [ sampledEcgPlot ] = plotSampledEcg( BW, smoothedEcgData, ecgPeakVals, xAxisStartPoint)
%UNTITLED5 Summary of this function goes here
%   Detailed explanation goes here

fig = figure('visible', 'off');

imshow(BW);

hold on

plot(smoothedEcgData(:, 1) + xAxisStartPoint, smoothedEcgData(:, 2));

x = [ecgPeakVals(1, 1) + xAxisStartPoint, ecgPeakVals(2, 1) + xAxisStartPoint];
y = [ecgPeakVals(1, 2), ecgPeakVals(2, 2)];

plot(x, y);

sampledEcgPlot = fig;

end

